package com.cyam.mapper;

import java.util.List;
import java.util.Map;

import com.cyam.base.IBaseMapper;
import com.cyam.domain.Article;
/**
 * 文章dao层接口
 * @author CourageAQ
 *
 */
public interface ArticleMapper extends IBaseMapper<Article>{
	
	public abstract List<Article> selectPage2(Map<String, Object> map) throws Exception;

	
	/***后台系统查询*/
	public abstract List<Article> selectPage3(Map<String, Object> map) throws Exception;
	
	/**后台系统分页查询数量*/
	public abstract int countObject3(Map<String, Object> map) throws Exception;
	
	/**查询近一年然后按月分组*/
	public abstract List<Article> selectByTime(Map<String, Object> map) throws Exception;
	
	/**根据时间查询 返回数量*/
	public abstract int countByTime2(Map<String, Object> map) throws Exception;
	
	/**根据时间查询 返回数据*/
	public abstract List<Article> selectByTime2(Map<String, Object> map) throws Exception;
	
	/**查询时间倒叙前五*/
	public abstract List<Article> listOfTimeTop5() throws Exception;
	
	/**随机查询五条记录*/
	public abstract List<Article> listRandTop5() throws Exception;
	
	/**search查询个数*/
	public abstract int searchCountArticle(Map<String, Object> map) throws Exception;
	
	/**search查询*/
	public abstract List<Article> searchListArticle(Map<String, Object> map) throws Exception;
	
}
